@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/factoryVideo/factoryVideo_add.js"]}){
<form id="factoryVideoForm" lay-filter="factoryVideoForm" class="layui-form model-form">
    <div class="layui-form-item">
        <#pic boxid="picBox" name="主图"  tip="请上传小于500kb，宽：690px,高：518px 的图片"  hiddenInput="image" uploadButton="uploadPic" />
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">农场id<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="factoryId" name="factoryId" placeholder="请输入农场id" type="hidden" class="layui-input" lay-verify="required" required/>
            <input id="factoryName" name="factoryName" placeholder="请选择农场"  type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">标题<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="title" name="title" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">链接<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="url" name="url" placeholder="请输入链接" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="weigh" name="weigh" placeholder="值越小，显示越靠前" type="number" min="1" max="99999999" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否显示<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="checkbox" id="status" name="status" checked  lay-filter="status" value="1" lay-skin="switch"  lay-text="是|否"   />
        </div>
    </div>
    <div class="layui-form-item oneItem" id="contentItem">
        <div id="editorVal" style="display:none;">
        </div>
        <blockquote  style="text-align: center">
            图文详情
        </blockquote>
        <div  style="margin-left: 20px">
            <div id="description_toolbar" class="toolbar">
            </div>
            <div id="description_text" class="text" style="height: 400px;border: 1px solid seagreen">
            </div>
        </div>
    </div>

    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}